package com.ruoyi.marketing.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @Author: renSen
 * @Date: 2023/01/30
 * @Description:
 */
@Setter
@Getter
@TableName("market_detail")
public class MarketDetail {
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 活动id
     */
    private Long activityId;
    /**
     * 奖品id
     */
    private Long rewardId;
    /**
     * 抽奖时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date lotteryTime;
    /**
     * 领取方式  1现金 2 支付宝 3 现场领取
     */
    private Integer mode;
}
